A good answer might be:

Vector csClass = new Vector( 15, 5 ) ;

Rough estimates are good enough. It is better to overestimate the capacity slightly than to underestimate it. A few unused slots do not hurt.

Capacity and Size

A Vector object has a capacity and a size. To find out the current capacity of a Vector use its capacity() method. To find out the current size of a Vector use its size() method.

The elements of a Vector are accessed using an integer index. As with arrays, the index is an integer value that starts at 0.

(These rules will be explained in detail in a few pages.)

QUESTION 6:

What is the value of the following boolean expression?

myVector.size() <= myVector.capacity()